Skip to main content

Day 2

Linux Basics I (File System, Navigation, Basic Commands)

Introduction to Linux

  • Why Linux for Cybersecurity?
    • Open-source and customizable.
    • Extensive tool support (e.g., Nmap, Wireshark).

Linux File System Structure:

  1. /bin: Essential command binaries.
  2. /etc: Configuration files.
  3. /home: User directories.
  4. /var: Variable data like logs.

Basic Commands:

  1. File Navigation:
    • List files:
      ls
    • Change directory:
      cd /path/to/directory
  2. File Operations:
    • Create file:
      touch filename.txt
    • Copy file:
      cp source.txt destination.txt
    • Move file:
      mv source.txt destination_folder/
    • Delete file:
      rm filename.txt
  3. View File Contents:
    • Display contents:
      cat file.txt
    • Display paginated view:
      less file.txt